/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.StateFacade;
import org.ipti.br.tag.entity.State;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author israel
 */
@Stateless
public class StateBO {
    @Inject
    private StateFacade stateDAO;

    public StateFacade getStateDAO() {
        return stateDAO;
    }

    public void create(State state) {
        getStateDAO().create(state);
    }

    public void edit(State state) {
        getStateDAO().edit(state);
    }

    public void remove(State state) {
        getStateDAO().remove(state);
    }

    public State find(Object id) {
        return getStateDAO().find(id);
    }

    public List<State> findAll() {
        return getStateDAO().findAll();
    }
    
    public List<State> findAllOrder() {
        return getStateDAO().findAllOrder();
    }
    
}
